//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.wd.cloud.applet.entity.commons;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;

@ApiModel(
        description = "API接口基础参数"
)
public class BaseApiModel {
    @NotBlank(
            message = "AppId不能为空"
    )
    @ApiModelProperty(
            value = "AppId由国库技术提供",
            required = true
    )
    private String appId;
    @ApiModelProperty("接口版本，不传默认为1.0")
    private String apiVersion;
    @NotBlank(
            message = "时间戳不能为空"
    )
    @ApiModelProperty(
            value = "时间戳，13位，精确到毫秒",
            required = true
    )
    private String timestamp;
    @NotBlank(
            message = "请求签名不能为空"
    )
    @ApiModelProperty(
            value = "接口签名",
            required = true
    )
    private String sign;

    public BaseApiModel() {
    }

    public String getAppId() {
        return this.appId;
    }

    public String getApiVersion() {
        return this.apiVersion;
    }

    public String getTimestamp() {
        return this.timestamp;
    }

    public String getSign() {
        return this.sign;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public void setApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof BaseApiModel)) {
            return false;
        } else {
            BaseApiModel other = (BaseApiModel)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$appId = this.getAppId();
                    Object other$appId = other.getAppId();
                    if (this$appId == null) {
                        if (other$appId == null) {
                            break label59;
                        }
                    } else if (this$appId.equals(other$appId)) {
                        break label59;
                    }

                    return false;
                }

                Object this$apiVersion = this.getApiVersion();
                Object other$apiVersion = other.getApiVersion();
                if (this$apiVersion == null) {
                    if (other$apiVersion != null) {
                        return false;
                    }
                } else if (!this$apiVersion.equals(other$apiVersion)) {
                    return false;
                }

                Object this$timestamp = this.getTimestamp();
                Object other$timestamp = other.getTimestamp();
                if (this$timestamp == null) {
                    if (other$timestamp != null) {
                        return false;
                    }
                } else if (!this$timestamp.equals(other$timestamp)) {
                    return false;
                }

                Object this$sign = this.getSign();
                Object other$sign = other.getSign();
                if (this$sign == null) {
                    if (other$sign != null) {
                        return false;
                    }
                } else if (!this$sign.equals(other$sign)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BaseApiModel;
    }
//
//    public int hashCode() {
//        int PRIME = true;
//        int result = 1;
//        Object $appId = this.getAppId();
//        int result = result * 59 + ($appId == null ? 43 : $appId.hashCode());
//        Object $apiVersion = this.getApiVersion();
//        result = result * 59 + ($apiVersion == null ? 43 : $apiVersion.hashCode());
//        Object $timestamp = this.getTimestamp();
//        result = result * 59 + ($timestamp == null ? 43 : $timestamp.hashCode());
//        Object $sign = this.getSign();
//        result = result * 59 + ($sign == null ? 43 : $sign.hashCode());
//        return result;
//    }

    public String toString() {
        return "BaseApiModel(appId=" + this.getAppId() + ", apiVersion=" + this.getApiVersion() + ", timestamp=" + this.getTimestamp() + ", sign=" + this.getSign() + ")";
    }
}
